const _products =  [
  {
    id: 1,
    title: 'ipad',
    price: 5000,
    inventory: 2
  },
  {
    id: 2,
    title: 'HM T-shirt',
    price: 15,
    inventory: 8
  },
  {
    id: 3,
    title: 'CD',
    price: 20,
    inventory: 5
  }
]

export const getAllProducts = () => {
  return new Promise((resolve, reject) => {
    setTimeout(()=> {
      resolve(_products)
    }, 1000)
  })
}